/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const demandRouter = {
    path: '/demand',
    component: Layout,
    redirect: '/demand/list',
    name: 'Demand',
    meta: {
        title: '心愿管理',
        icon: 'star'
    },
    children: [{
        path: 'list',
        component: () =>
            import('@/views/demand/list'),
        name: 'DemandList',
        meta: { title: '心愿管理', noCache: true },

    },
    /* {
        path: 'detail/:id(\\d+)',
        component: () =>
            import ('@/views/demand/components/DemandDetail'),
        name: 'DemandAdd',
        meta: { title: '心愿管理', noCache: true, activeMenu: '/demand/list' },
        hidden: true
    }, */
    {
        path: 'wait/:id(\\d+)',
        component: () =>
            import('@/views/demand/wait'),
        name: 'WaitDemand',
        meta: { title: '心愿详情', noCache: true, activeMenu: '/demand/list' },
        hidden: true
    },
    {
        path: 'received/:id(\\d+)',
        component: () =>
            import('@/views/demand/received'),
        name: 'ReceivedDemand',
        meta: { title: '心愿详情', noCache: true, activeMenu: '/demand/list' },
        hidden: true
    },
    ]
}
export default demandRouter
